import BaseCom from "../common/BaseCom";

export default class SceneCom extends BaseCom{
    public doCtor(){
        cc.log(this.name, "------------->>>doCtor");
    }

    public onShow(){
        cc.log(this.name, "------------->>>doEnter");
        
        super.onShow();

        this.node.active = true;
    }

    public onHide(){
        cc.log(this.name, "------------->>>doExit");

        super.onHide();

        this.node.x = 0;
        this.node.y = 0;

        this.node.active = false;

        this.node.stopAllActions();
    }

    public frameOnMove(dt){
    }
};
